<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<html>
<head>
<title>:: CMS ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function formReset()
{
document.getElementById("frm1").reset();
}
</script>

<script language="JavaScript" src="../html/calendar_us.js"></script>
<script src="../script/jquery-1.7.1.min.js" type="text/javascript"></script>
	<link rel="stylesheet" href="../html/calendar.css">
<link href="../css/styles.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
body {
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	margin-top: 5px;
}
-->
</style>
<script src="../script/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function()
		{
		$('#admissionNo').blur(function()
		{
		var ad = $(this).val();
		if(ad)
		{

		$.ajax({
		type: "GET",
		url: "autoComStudent.htm",
		data: {adNo: ad },
		cache: false,
		success: function(html){
		$("#autoScript").append(html);
		}
		});
		}

		return false;
		});
		});
function fill(name,branch,yearOfAdmission,feeStructureName,sex) {
$('#name').val(name);
$('#branch').val(branch);
$('#yearOfAdmission').val(yearOfAdmission);
$('#feeStructureName').val(feeStructureName);
$('#sex').val(sex);
}
</script>

<script type="text/javascript"> // ajax call for delete products 
$(function() {
$(".delbutton").click(function(){
var element = $(this);
var del_id = element.attr("id");
var info = 'id=' + del_id;
if(confirm("Sure you want to delete this update? There is NO undo!"))
{
$.ajax({
type: "GET",
url: "deleteStudentFeeStructure.htm",
data: info,
success: function(){
}
});
$(this).parents("#record").animate({ backgroundColor: "#fbc7c7" }, "fast")
.animate({ opacity: "hide" }, "slow");
}
return false;
});
});
</script>


</head>

<body>
<div id="autoScript"></div>
<form action="listStudentFee.htm" method="get">
<table width="100%" border="0">
  
  <tr>
    <td><span class="heading"><a href="main.html" class="Bredcrumbs">Consolidate</a> <span class="Bredcrumbs">&gt;&gt;Sudent Fee Structure &gt;&gt;</span> </span></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="9"><img src="../images/Tright_03_01.gif" width="9" height="29"></td>
        <td background="../images/Tcenter.gif" class="heading_white" >Fee Structure </td>
        <td width="10" ><img src="../images/Tright_1_01.gif" width="9" height="29"></td>
      </tr>
      <tr>
        <td height="19" valign="top" background="../images/Tright_03_03.gif"></td>
        <td height="20" class="news"><div align="right" class="mandatoryfield">*Mandatory fields</div></td>
        <td valign="top" background="../images/Tright_3_3.gif" class="news"></td>
      </tr>
      <tr>
        <td height="44" valign="top" background="../images/Tright_03_03.gif"></td>
        <td valign="top" class="news"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td ><img src="../images/01.gif" width="5" height="5" /></td>
            <td width="914" background="../images/02.gif"></td>
            <td><img src="../images/03.gif" width="5" height="5" /></td>
          </tr>
          <tr>
            <td width="5"  background="../images/left.gif"></td>
            <td valign="top"><table width="100%" cellspacing="1" cellpadding="2">
              
              <tr >
                <td width="16%" height="25" class="row-odd" ><div align="right"> </span><span class="Mandatory">*</span>Admission No: </div></td>
                <td width="32%" height="25" class="row-even" ><label></label>
                    <span class="star">
                    <input name="admissionNo" type="text" class="textbox" id="admissionNo" size="20" maxlength="20">
                     <input name="studentId" id="studentId" type="text" class="row-white" value="" size="16" hidden="true"  autocomplete="off"/>
				
                 </span></td>
		</tr>
		<tr>
                <td width="17%" height="25" class="row-odd"><div align="right"> </span>Name:</div></td>
              
                 <td width="39%" class="row-even"><input name="name" id="name" type="text" class="row-white" value="" size="30" readonly="readonly"/></td>
               </div></td>
              </tr>
		<tr>
		<td width="17%" height="25" class="row-odd"><div align="right"> </span>Branch:</div></td>
           
                  <td width="39%" class="row-even"><input name="branch" id="branch" type="text" class="row-white" value="" size="30" readonly="readonly"/></td>
               </div></td>
		</tr>

		<tr>
		<td width="17%" height="25" class="row-odd"><div align="right"> </span>Batch:</div></td>
               
                  <td width="39%" class="row-even"><input name="yearOfAdmission" id="yearOfAdmission" type="text" class="row-white" value="" size="30" readonly="readonly"/></td>
               </div></td>
		</tr>

		<tr>
		<td width="17%" height="25" class="row-odd"><div align="right"> </span>Fee Structure:</div></td>
               
                  <td width="39%" class="row-even"><input name="feeStructureName" id="feeStructureName" type="text" class="row-white" value="" size="30" readonly="readonly"/></td>
               </div></td>
		</tr>

		<tr>
		<td width="17%" height="25" class="row-odd"><div align="right"> </span>Sex:</div></td>
                
                  <td width="39%" class="row-even"><input name="sex" id="sex" type="text" class="row-white" value="" size="30" readonly="readonly"/></td>
               </div></td>
		</tr>

            </table></td>
            <td width="5" height="30"  background="../images/right.gif"></td>
          </tr>
          <tr>
            <td height="5"><img src="../images/04.gif" width="5" height="5" /></td>
            <td background="../images/05.gif"></td>
            <td><img src="../images/06.gif" /></td>
          </tr>
        </table></td>
        <td valign="top" background="../images/Tright_3_3.gif" class="news"></td>
      </tr>
      <tr>
        <td height="35" valign="top" background="../images/Tright_03_03.gif"></td>
        <td height="35" valign="top" ><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="45%" height="35"><div align="right">
                <input type="submit" class="formbutton" value="Submit" />
            </td>
           <td width="45%" height="35"><div align="left">
           <input type="button" name="" value="Reset" onClick="resetCourse()" class="formbutton">
           </td>
                     </tr>
        </table></td>
        <td width="10" valign="top" background="../images/Tright_3_3.gif" class="news"></td>
      </tr>
      <tr>
        <td height="122" valign="top" background="../images/Tright_03_03.gif"></td>
        <td valign="top" class="news"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td ><img src="../images/01.gif" width="5" height="5" /></td>
            <td width="914" background="../images/02.gif"></td>
            <td><img src="../images/03.gif" width="5" height="5" /></td>
          </tr>
          <tr>
            <td width="5"  background="../images/left.gif"></td>
            <td valign="top"><table width="100%" cellspacing="1" cellpadding="2">
                <tr >
                  <td height="25" class="row-odd" ><div align="center">Sl.No </div></td>
                  <td height="25" class="row-odd"><div align="center">Date</td>
                  <td height="25" class="row-odd" ><div align="center">Tution fee</td>
                  <td height="25" class="row-odd"><div align="center">Special fee</div></td>
		 <td height="25" class="row-odd"><div align="center">Quotion Deposit</div></td>
		 <td height="25" class="row-odd"><div align="center">Refudable Deposite</div></td>
		 <td height="25" class="row-odd"><div align="center">Miscellaneous</div></td>
		 <td height="25" class="row-odd"><div align="center">Concession Amount</div></td>
		 <td height="25" class="row-odd"><div align="center">Total</div></td>
		  
                  <td class="row-odd"><div align="center">Edit </div></td>
                  <td class="row-odd"><div align="center">Delete</div></td>
                </tr>
               
               <c:forEach items="${feeList}" var="feeStructure" varStatus="status">
								<tr id="record" class="<c:if test="${status.count % 2 == 0}">row-white</c:if><c:if test="${status.count % 2 == 1}">row-even</c:if>">
									
									<td  align="center" height="25">${status.count }</td>
								
									<td  align="center" style="width: 10%">${feeStructure.dateLastFee }</td>
									<td  align="center" style="width: 10%">${feeStructure.tutionFee }</td>
									<td  align="center"  style="width: 10%">${feeStructure.specialFee}</td>
									<td  align="center" style="width: 15%">${feeStructure.quotionDepo}</td>
									<td  align="center" style="width: 15%">${feeStructure.refundableDepo}</td>
									<td  align="center" style="width: 15%">${feeStructure.miscellaneous}</td>
									<td  align="center" style="width: 15%">${feeStructure.amount}</td>
									<td  align="center" style="width: 15%">${feeStructure.total}</td>
									 <td  align="center" style="width: 5%"><a href="update.htm?id=${feeStructure.id }" class="editbutton"><img src="../images/edit_icon.gif"/></a></td>
									<td  align="center"  style="width: 5%"><a href="#" id="${feeStructure.id }" class="delbutton"><img src="../images/delete_icon.gif"/></a></td>
								
									
										
								</tr>
							</c:forEach>
							
               
               
               
               
               
               
                           </table></td>
            <td width="5" height="30"  background="../images/right.gif"></td>
          </tr>
          <tr>
            <td height="5"><img src="../images/04.gif" width="5" height="5" /></td>
            <td background="../images/05.gif"></td>
            <td><img src="../images/06.gif" /></td>
          </tr>
        </table></td>
        <td valign="top" background="../images/Tright_3_3.gif" class="news"></td>
      </tr>
      <tr>
        <td><img src="../images/Tright_03_05.gif" width="9" height="29"></td>
        <td width="0" background="../images/TcenterD.gif"></td>
        <td><img src="../images/Tright_02.gif" width="9" height="29"></td>
      </tr>
    </table></td>
  </tr>
  
</table>
</form>
</body>
</html>